﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace aier.dataaccess.model
{
    [XrmEntity("competitor", "competitorid")]
    public class CompetitorInfo
    {
        /// <summary>
        /// 医疗机构ID
        /// </summary>
        [XrmFieldMapping("competitorid", XrmAttributeType.UniqueIdentifier)]
        public Guid Competitorid
        {
            get;
            set;
        }
        /// <summary>
        /// 医院名称
        /// </summary>
        [XrmFieldMapping("name", XrmAttributeType.String, true)]
        public string Name
        {
            get;
            set;
        }
        /// <summary>
        /// 医院类别 100000000省100000001市100000002区县100000003乡镇
        /// </summary>
        [XrmFieldMapping("new_hospitalclass", XrmAttributeType.XrmOptionSetValue, true)]
        public int? New_hospitalclass
        {
            get ;
            set;
        }
        /// <summary>
        /// 医院类型 100000000公立100000001民营100000002职工医院100000003个体经营100000004合作托管
        /// </summary>
        [XrmFieldMapping("new_hospitaltype", XrmAttributeType.XrmOptionSetValue, true)]
        public int? New_hospitaltype
        {
            get ;
            set;
        }
        /// <summary>
        /// 医院等级 100000000一甲100000001一乙100000002一丙100000003二甲100000004二乙100000005二丙100000006三甲100000007三乙100000008三丙100000009三特
        /// </summary>
        [XrmFieldMapping("new_yiyuandengji", XrmAttributeType.XrmOptionSetValue, true)]
        public int? New_yiyuandengji
        {
            get ;
            set;
        }
        /// <summary>
        /// 面积（平方米）
        /// </summary>
        [XrmFieldMapping("new_themeasureofarea", XrmAttributeType.String, true)]
        public string New_themeasureofarea
        {
            get;
            set;
        }
        /// <summary>
        /// 省
        /// </summary>
        [XrmFieldMapping("new_province", XrmAttributeType.EntityReference, true)]
        [XrmReferenceType("new_province", default(string))]
        public Guid New_province
        {
            get;
            set;
        }
        /// <summary>
        /// 市
        /// </summary>
        [XrmFieldMapping("new_market", XrmAttributeType.EntityReference, true)]
        [XrmReferenceType("new_city", default(string))]
        public Guid New_market
        {
            get;
            set;
        }
        /// <summary>
        /// 区\县
        /// </summary>
        [XrmFieldMapping("new_districtcounty", XrmAttributeType.EntityReference, true)]
        [XrmReferenceType("new_area", default(string))]
        public Guid New_districtandcounty
        {
            get ;
            set;
        }
        /// <summary>
        /// 社区 
        /// </summary>
        [XrmFieldMapping("new_community", XrmAttributeType.EntityReference, true)]
        [XrmReferenceType("new_community", default(string))]
        public Guid New_community
        {
            get;
            set;
        }
        /// <summary>
        /// 办公地址
        /// </summary>
        [XrmFieldMapping("address1_composite", XrmAttributeType.String, true)]
        public string Address1_composite
        {
            get ;
            set;
        }
        /// <summary>
        /// 医疗机构类型 { "id": 1, "name": "社区卫生服务中心" }, { "id": 2, "name": "社区卫生服务站" }, { "id": 3, "name": "乡镇卫生院" }, { "id": 4, "name": "医院" }, { "id": 5, "name": "村卫生室" }, { "id": 6, "name": "其他" }
        /// </summary>
        [XrmFieldMapping("new_type", XrmAttributeType.XrmOptionSetValue, true)]
        public int? New_type
        {
            get;
            set;
        }
        /// <summary>
        /// 模式 1：眼健康联盟 2：爱眼e站
        /// </summary>
        [XrmFieldMapping("new_mode", XrmAttributeType.XrmOptionSetValue, true)]
        public int? New_mode
        {
            get;
            set;
        }
        [XrmFieldMapping("new_iscoopmedicalcouplet", XrmAttributeType.Boolean, true)]
        public bool? New_iscoopmedicalcouplet
        {
            get;
            set;
        }

    }
}
